import request from '@/utils/request';

// 岗位
// export const followType = params => request({
//     url: '/admin/statistics/followType',
//     method: 'GET',
//     params
// });

// 岗位列表
export const positionList = params => request({
    url: '/position/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 岗位新增
export const positionAdd = params => request({
    url: '/position/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 岗位更新
export const positionUpdate = params => request({
    url: '/position/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 岗位下拉
export const pullList = params => request({
    url: '/position/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 岗位属性下拉
export const attributePullList = params => request({
    url: '/position/attribute/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 总部岗位或院区岗位下拉列表
export const listByPersonType = params => request({
    url: '/position/listByPersonType',
    method: 'GET',
    params
});
